package org.jeecg.modules.system.controller;

import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * 说明: 二维码
 * @author: xiamu
 * @version: 1.0
 * @date: 2021/7/23 17:20
 */
@RestController
@RequestMapping("/qrcode")
@Api(tags="二维码")
@Slf4j
public class QrCodeController {


    /**
     * 生成二维码    //todo 使用 二维码类型 +uuid（MD5 +salt）
     * @param response
     * @throws Exception
     */
    @GetMapping("/createQrCode")
    public void get(HttpServletResponse response) throws Exception {
       return ;
    }

}
